package com.hczt.xhminiapp.appapi.service;

import com.hczt.xhminiapp.db.entity.Dict;
import com.hczt.xhminiapp.db.repository.DictRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 红创-马海强
 * @date 2019-03-04 14:57
 * @description 字典数据业务处理类
 */
@Service
public class DictService {

    @Autowired
    private DictRepository dictRepository;

    public List<Dict> queryDicts() {
        return dictRepository.findAll();
    }
}
